﻿@model Finance.Web.Models.DepostAccounting

<form class="form-horizontal" name="depositForm">

   <div class="form-group">
    <label for="deposit" class="col-sm-2 control-label">Депозит</label>
    <div class="col-sm-8">
        <input id="deposit" type="text" data-ng-model="model.Deposit" placeholder="Выберите депозит" name="Deposit"  data-typeahead="state as state.Name for state in loadDeposites($viewValue)" class="form-control" required>
    </div>
  </div>

  <div class="form-group">
    <label for="amount" class="col-sm-2 control-label">Сумма</label>
    <div class="col-sm-8">
      <input type="number"  class="form-control" name="Amount" data-ng-model="model.Amount" id="amount" min="0" data-currency="">
    </div>
  </div>

    <div class="form-group" data-ng-show="!!result">
        <label for="result" class="col-sm-2 control-label">Результат</label>
        <div class="col-sm-8" data-ng-show="true">
            <div class="form-control">{{result | percent}}</div>
        </div>
    </div>
   
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-2">
      <button type="submit" data-ng-click="calculate()" class="btn">Рассчитать</button>
    </div>
  </div>  
</form>